package com.sevattal.service.leaves.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.text.DateFormat;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.sevattal.service.base.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ExampleProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 员工表
 * </p>
 *
 * @author Sevattal
 * @since 2021-08-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_emp")
@ApiModel(value="Emp对象", description="员工表")
public class Emp extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "员工号")
    @TableField("f_eId")
    private String fEid;

    @ApiModelProperty(value = "部门号")
    @TableField("f_dId")
    private String fDid;

    @ApiModelProperty(value = "用户名")
    @TableField("f_eUsername")
    private String fEusername;

    @ApiModelProperty(value = "登录密码")
    @TableField("f_ePassword")
    private String fEpassword;

    @ApiModelProperty(value = "姓名")
    @TableField("f_eName")
    private String fEname;

    @ApiModelProperty(value = "性别")
    @TableField("f_eGender")
    private Boolean fEgender;

    @ApiModelProperty(value = "职务")
    @TableField("f_eTitle")
    private String fEtitle;

    @ApiModelProperty(value = "出生日期")
    @TableField("f_eBirthday")
    private Date fEbirthday;

    @ApiModelProperty(value = "电话")
    @TableField("f_eTel")
    private String fEtel;

    @ApiModelProperty(value = "邮箱")
    @TableField("f_eEmail")
    private String fEemail;

    @ApiModelProperty(value = "入职日期",example = "2021-08-15 09:00:00")
    @TableField("f_eOfferStartDate")
    private Date fEofferstartdate;

    @ApiModelProperty(value = "合同到期日期",example = "2021-08-15 09:00:00")
    @TableField("f_eOfferEndDate")
    private Date fEofferenddate;

    @ApiModelProperty(value = "备注")
    @TableField("f_eMemo")
    private String fEmemo;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "是否禁用 1（true）已禁用，  0（false）未禁用")
    @TableField("is_disabled")
    private Boolean disabled;

    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;


}
